<?php
/**
 * @version        $Id: ajax_loginsta.php 1 8:38 2010年7月9日Z tianya $
 * @package        DedeCMS.Member
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require_once(dirname(__FILE__)."/config.php");
AjaxHead();
if($myurl == '') exit('');

$uid  = $cfg_ml->M_LoginID;

!$cfg_ml->fields['face'] && $face = ($cfg_ml->fields['sex'] == '女')? 'dfgirl' : 'dfboy';
$facepic = empty($face)? $cfg_ml->fields['face'] : $GLOBALS['cfg_memberurl'].'/templets/images/'.$face.'.png';
?>


<!-- 上传-->
<?php if($cfg_ml->isAdmin==1){ echo "<div class='headRBtn fl relative slideBtn'>
	<p><span class='icon uploadBtn'></span></p>
	<ul class='uploadUl slideBox'>
		<li><a href='/user/soft_add.php?channelid=3' title='上传作品'>上传作品</a></li>
							</ul>
</div>"; }?>
<!--上传 End -->
<!-- 私信-->
<div class="headRBtn fl relative slideBtn">
						<p><span class="icon inbox"></span></p>
	<dl class="inboxDl slideBox">
		<dt class="inboxDt">
			<span class="inboxDtSan"></span>
			<p class="inboxDtP">私信&nbsp;&nbsp;<font>(<?php echo $mypms;?>)</font></p>
		</dt>
		<dd>
			<ul>
										</ul>
			<a href="<?php echo $cfg_memberurl; ?>/pm.php" class="headMore">查看更多</a>
		</dd>
	</dl>
</div>
<!-- 私信 End -->

<!-- 设置 -->
<div class="headRBtn headShezhi fl relative slideBtn">
	<div><a href="<?php echo $cfg_memberurl; ?>/"><img src="<?php echo $facepic;?>" width="29" height="29" class="radius100" /></a><div class="user_id">ID:<?php echo $cfg_ml->M_ID; ?><br></div></div>
	<ul class="uploadUl slideBox">
		<li><a href="<?php echo $cfg_memberurl; ?>/" title="<?php echo $cfg_ml->M_UserName; ?>"><?php echo $cfg_ml->M_UserName; ?></a></li>
		<li><a href="<?php echo $cfg_memberurl; ?>/buy.php" title="金币充值">金币充值</a></li>
		<li><a href="<?php echo $cfg_memberurl; ?>/mystow.php" title="我的收藏">我的收藏</a></li>
		<li><a href="<?php echo $cfg_memberurl; ?>/edit_fullinfo.php" title="资料修改">资料修改</a></li>
		<li><a href="<?php echo $cfg_memberurl; ?>/index_do.php?fmdo=login&dopost=exit" title="退出登录">退出登录</a></li>
	</ul>
</div>
<!-- 设置 End -->
<!--/userinfo -->


